<!-- src/main/resources/templates/article/result.html -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/resultstyles.css}">
</head>
<body>
<h2>搜索结果</h2>

<table>
    <thead>
    <tr>
        <th>文章编号</th>
        <th>文章标题</th>
        <th>文章内容</th>
        <th>发布时间</th>
        <th>用户编号</th>
        <th>文章类型编号</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td th:text="${article.id}"></td>
        <td th:text="${article.title}"></td>
        <td th:text="${article.content}"></td>
        <td th:text="${article.pubDate}"></td>
        <td th:text="${article.userId}"></td>
        <td th:text="${article.articleTypeId}"></td>
    </tr>
    </tbody>
</table>

<a class="back-btn" th:href="@{/article/findAll}">返回</a>

</body>
</html>
